luci-base: rpc: add call to enumerate builtin ethernet ports
authorJo-Philipp Wich <[email protected]>
Thu, 24 Aug 2023 14:44:40 +0000 (16:44 +0200)
committerJo-Philipp Wich <[email protected]>
Thu, 24 Aug 2023 14:50:05 +0000 (16:50 +0200)
commitfc638c8e01fb71c627e20e1c1b6854345eb91763
tree8e999b4fe03722d5caecdec78f1ef0909a2e2784
parent9f3e3985c685a37ec83e6a10bbc694ba8f0dc3cb
luci-base: rpc: add call to enumerate builtin ethernet ports

Add a new luci/getBuiltinEthernetPorts RPC call which returns a consolidated
list of known ethernet ports found in `/etc/board.json`.

Add an x86/64 specific workaround which attempts to enumerate missing
ethernet devices too.

Ref: #6534, #6538
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 98e37433e7f33b3e2ee751250e04b194a0aa6a0b)
modules/luci-base/root/usr/share/rpcd/ucode/luci